from langchain_mcp_adapters.client import MultiServerMCPClient
from sqlalchemy.util import await_only
import asyncio


async def get_amap_mcp_client():
    amap_key = "52eed670cd806bcadb0f72b32dd182c9"
    mcp_config : dict = {
        "amap": {
            "url": f"https://mcp.amap.com/sse?key={amap_key}",
            "transport": "sse",
        }
    }

    client = MultiServerMCPClient(mcp_config)

    return  client




